package com.ruoyi.project.countrybus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.countrybus.mapper.SysVehicleMapper;
import com.ruoyi.project.countrybus.domain.SysVehicle;
import com.ruoyi.project.countrybus.service.ISysVehicleService;

/**
 * 车辆信息Service业务层处理
 * 
 * @author yangwenbo
 * @date 2022-04-05
 */
@Service
public class SysVehicleServiceImpl implements ISysVehicleService 
{
    @Autowired
    private SysVehicleMapper sysVehicleMapper;

    /**
     * 查询车辆信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 车辆信息
     */
    @Override
    public SysVehicle selectSysVehicleByVehicleId(Long vehicleId)
    {
        return sysVehicleMapper.selectSysVehicleByVehicleId(vehicleId);
    }

    /**
     * 查询车辆信息列表
     * 
     * @param sysVehicle 车辆信息
     * @return 车辆信息
     */
    @Override
    public List<SysVehicle> selectSysVehicleList(SysVehicle sysVehicle)
    {
        return sysVehicleMapper.selectSysVehicleList(sysVehicle);
    }

    /**
     * 新增车辆信息
     * 
     * @param sysVehicle 车辆信息
     * @return 结果
     */
    @Override
    public int insertSysVehicle(SysVehicle sysVehicle)
    {
        return sysVehicleMapper.insertSysVehicle(sysVehicle);
    }

    /**
     * 修改车辆信息
     * 
     * @param sysVehicle 车辆信息
     * @return 结果
     */
    @Override
    public int updateSysVehicle(SysVehicle sysVehicle)
    {
        return sysVehicleMapper.updateSysVehicle(sysVehicle);
    }

    /**
     * 批量删除车辆信息
     * 
     * @param vehicleIds 需要删除的车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteSysVehicleByVehicleIds(Long[] vehicleIds)
    {
        return sysVehicleMapper.deleteSysVehicleByVehicleIds(vehicleIds);
    }

    /**
     * 删除车辆信息信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteSysVehicleByVehicleId(Long vehicleId)
    {
        return sysVehicleMapper.deleteSysVehicleByVehicleId(vehicleId);
    }
}
